package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.BankFinancingProductCurrencyDo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface BankFinancingProductCurrencyDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BankFinancingProductCurrencyDo record);

    int insertSelective(BankFinancingProductCurrencyDo record);

    BankFinancingProductCurrencyDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BankFinancingProductCurrencyDo record);

    int updateByPrimaryKey(BankFinancingProductCurrencyDo record);

    int deleteByReportOrgCodeAndReportTime(@Param("reportOrgCode") String reportOrgCode,
                                           @Param("reportTime") Date reportTime);

    int deleteByProductCode(String productCode);

    BankFinancingProductCurrencyDo selectByProductCodeAndType(@Param("productCode") String productCode,
                                                              @Param("type") Integer type);
}